package com.testfileupload.uploadimg.design.decorate.define;

public class ConcreateDecorator2 extends Decorator {
    public ConcreateDecorator2(Component component) {
        super(component);
    }

    //定义修饰方法
    public void method2() {
        System.out.println("method2修饰");
    }
    //重写

    @Override
    public void operate() {
        super.operate();
        this.method2();
    }
}
